package common.util;

import android.content.Context;

public class SamplePreference {
	private static final String NAME = "SamplePreference";

	public static final void setPreference(Context context, String key, String value) {
		context.getSharedPreferences(NAME, Context.MODE_PRIVATE).edit().putString(key, value).commit();
	}

	public static final String getPreference(Context context, String key) {
		return context.getSharedPreferences(NAME, Context.MODE_PRIVATE).getString(key, "");
	}
}
